<?php
if (!defined("BASEPATH")) exit("No direct script access allowed");

class Bookie_model extends MY_Model {

	function __construct() {
		parent::__construct();
		$this->tableName = "bookie";
		$this->prefix = "bookie";
	}

	function getBookie() {
		$this->db->select("bookie_id, bookie_name");
		$this->db->from($this->tableName);
		$this->db->where("bookie_del", 0);
		$result = $this->db->get();
		if($result->num_rows()) {
			return ($result->result_array());
		}
		return array();
	}
   
}